import React, { Component } from 'react'
import { Text, View } from 'react-native'
import { $fetch } from "../fetch"
export default class DetailPage extends Component {
    state = {
        ...store.getState()
    }
    componentDidMount() {
        $fetch()
    }
    render() {
        return (
            <View>
                {/* 未登录显示 */}
                <View style={{ display: this.state.isOkPwd ? 'flex' : 'none' }}><Text>我登录了</Text></View>

                <View style={{ display: this.state.isOkPwd ? 'none' : 'flex' }}>
                    <Text>not</Text></View>
            </View>
        )
    }
}
